<div id="border"> 
<form action="<?=site_url("job_wanted/do_upload")?>" enctype="multipart/form-data" method="post"> 
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
     <td valign="top">       
        <table width="705" border="0" align="center" id="usertitle">
          <tr>
            <td><h3 style=""><?=$Z_TRANS->value('menu_job_wanted')?></h3></td>
            <td align="right"><a href="<?=site_url("job_wanted")?>"><input class="post_ads" name="" type="button" value=" <?=$Z_TRANS->value('menu_post_job')?> " /></a></td>
          </tr>
        </table>
        <div id="content">
        <div class="user_line_border_top">&nbsp;</div>
        <div style="margin:10px auto;"></div>
  		<?php $str_path = str_replace("\\", "/", FCPATH);	
    	foreach($job_list->result_array() as $row) {
    		$fulldesc=$row["job_wan_desc"];
    		$shortdesc=(strlen($fulldesc)>100)?substr($fulldesc,0,100)."...":substr($fulldesc,0,100);
    		$datepost=date_postgres_to_html($row['date_create']);
		?>
    	<table width="100%" border="0" class="left_ttb_border f-12px">
        <tr>
          	<td width="15%" align="center" valign="top"><a href="<?=site_url();?>/job_wanted/detail/<?=$row["job_wan_id"]?>">
            <?php $filename=$str_path."usr/".$row["user_id"]."/".$row["user_photo"];
					if($row["user_photo"]!='' && file_exists ($filename)){ ?>
            		<img src="<?=base_url();?>usr/<?=$row["user_id"]?>/<?=$row["user_photo"]?>" height="60" />
					<?php }else{?>
                        <img src="<?=base_url();?>images/nopic.gif" height="60"/>
                    <? } ?></a>
            </td>
          	<td width="70%" class="list_desc"><a href="<?=site_url();?>/job_wanted/detail/<?=$row["job_wan_id"]?>"><?=$row["job_wan_subject"]?></a><br /><?=$shortdesc?></td>          	
          	<td width="10%" valign="top"><?=$Z_TRANS->value('title_posted_on')?> <b><?=$datepost?></b></td>
        </tr>
       
  		</table> 
       
    	<?php 
    		}
    	?> 
		<br />
    	<div class="pagination"><?php echo $this->pagination->create_links(); ?></div>
        </td>
        <td width="254" valign="top">
			<?php include APPPATH."views/templates/common/right_content.php"; ?>
         </td>
         
      </tr>
  </table>
  </form>
</div>